$(function(){
	$(".receiving-title span").on("click",function(){
		var consignee=$("input[name='consignee']").val();
		var mobile=$("input[name='mobile']").val();
		var address=$("input[name='address']").val();
		var houseNumber=$("input[name='houseNumber']").val();
		if(!(/^1[34578]\d{9}$/.test(mobile))){ 
	    	mui.alert("您的手机号码有误,请重新输入","提示");  
	        return; 
	    }
		var param ={"userId":USERID,"isDefault":1,"consignee":consignee,"mobile":mobile,"address":address,"houseNumber":houseNumber};
		onlineContinuationModule.userAdressNew(param,callBack);
		var orderid = utilModule.getQueryString("orderid");
		function callBack(data){
			console.log(data);
			if(data.status==200||data ==1){
				mui.alert("保存成功","提示",function(){
					location.href="receiving-list.html?orderid="+orderid;
				}); 
			}else{
				mui.toast("保存失败");
			}
		}
	});
});
